package org.seedltd.upms.model.detection.entity;

import java.math.BigDecimal;

import org.seedltd.core.base.BaseEntityKey;
import org.seedltd.upms.enums.EnableStatus;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;

import lombok.Getter;
import lombok.Setter;

/**
 * 产品管理数据库对象
 * 
 * @author laizuan
 * @version 1.0
 * @since 2021/07/30
 */
@Getter
@Setter
@TableName("detection_product")
public class DetectionProduct extends BaseEntityKey {

    /**
     * 产品名称
     */
    @TableField(value = "product_name")
    private String productName;

    /**
     * 产品描述
     */
    @TableField(value = "produce_desc")
    private String produceDesc;

    /**
     * 原价
     */
    @TableField(value = "orig_price")
    private BigDecimal origPrice;

    /**
     * 现有价格
     */
    @TableField(value = "price")
    private BigDecimal price;

    /**
     * 推广标识，1首页显示，0不显示
     */
    @TableField(value = "advertising")
    private Integer advertising;

    /**
     * 产品图片
     */
    @TableField(value = "img")
    private String img;

    /**
     * 是否只能单买
     */
    @TableField(value = "necessary")
    private Integer necessary;

    /**
     * 项目检测项，多个使用英文逗号隔开
     */
    @TableField(value = "product_item")
    private String productItem;

    /**
     * 启禁用
     */
    @TableField(value = "enabled")
    private EnableStatus enabled;

    /**
     * 排序
     */
    @TableField(value = "sort_no")
    private Integer sortNo;

    /**
     * 备注
     */
    @TableField(value = "remark")
    private String remark;
}